package com.houg.testorderapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.houg.testorderapi.model.entity.Order;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper extends BaseMapper<Order> {
    Order selectByOrderId(@Param("orderId")String orderId);
    int closeOrder(@Param("orderId")String orderId);
    int payState(@Param("orderId")String orderId,@Param("orderState")int orderState);
    Order selectByUserId(@Param("userId")String userId);
}